home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-17 | 2.1 KB | 83 lines | [TEXT/MPS ] |
- # Full build script for MRC PPC
- #
- # MCPPCBuildAll [Debug|Release] [Clean] [NoExamples]
- #
- # This script assumes that you have placed UserStartup•ODF in your MPW folder.
- #
- # NOTE: The CyberStarter example is not currently built due to a lack of native
- # C++ exception handling which is required. However, you can build this example
- # Metrowerks CodeWarrior compiler.
-
- if "{ODF}" == ""
- Beep
- Beep
- Echo "### MCPPCBuildAll"
- Echo "### You have not installed the 'UserStartup•ODF' file (or 'UserStartupTS•ODF' for ToolServer)."
- Echo "### Please do so before continuing. Those files are located in the 'Getting Starter' folder"
- Echo "### Don't forget to relaunch MPW (or ToolServer)."
- exit
- end
-
- Set TheBuild ""
- Set Clean 0
- Set Examples 1
-
- For item in {Parameters}
- if {item} == Debug
- Set TheBuild Debug
- else if {item} == debug
- Set TheBuild Debug
- else if {item} == Release
- Set TheBuild Release
- else if {item} == release
- Set TheBuild Release
- else if {item} == Clean
- Set Clean 1
- else if {item} == clean
- Set Clean 1
- else if {item} == NoExamples
- Set Examples 0
- else if {item} == noexamples
- Set Examples 0
- else if {item} == Noexamples
- Set Examples 0
- else
- Echo "MCPPCBuildAll [Debug|Release] [Clean] [NoExamples]"
- exit
- end
- End
-
- if {TheBuild} == ""
- Set TheBuild Debug
- end
-
- Set Exit 0
- if {Clean} == 1
- Echo "# `Date -t` ----- Cleaning PPC object files."
- Delete -y `Files -f -s "{ODF}MCPPC{TheBuild}:Obj:" ≥≥ Dev:NULL` ≥≥ Dev:NULL
- if {Examples} == 1
- For example In ColorExtension Bitmap Button Clock Container Draw Embed Form Hello Nothing Table ViewTester
- Delete -y `Files -f -s "{ODFDev}{example}:MCPPC{TheBuild}:Obj:" ≥≥ Dev:NULL` ≥≥ Dev:NULL
- End
- End
- End
-
- Set Exit 1
-
- Echo "# `Date -t` ----- Starting PPC build."
-
- # ----- Build ODF Shared Library
- # The shared library is built using CodeWarrior.
-
- # ----- Build ODF Static Libraries
- "{ODF}MCPPC{TheBuild}:Build"
-
- # ----- Build ODF Samples
- if {Examples} == 1
- For example In ColorExtension Bitmap Button Clock Container Draw Embed Form Hello Nothing Table ViewTester
- "{ODFDev}{example}:MCPPC{TheBuild}:Build"
- End
- End
-
- Echo "# `Date -t` ----- Finished PPC build."
-